#ifndef _PICBOX_
#define _PICBOX_

#include "UIObject.h"

#include "..\Graphic\Graphic.h"

#include "hge\hgefont.h"
#include "hge\hgesprite.h"

namespace air {
	class Shape;

	class PictureBox: public UIObject {
	public:
		PictureBox(Shape*,float,float,int);
		~PictureBox();
		bool isPointInObject(float x, float y);

		DWORD getColor() const;
		void setColor(DWORD);
		Shape* getShape();

		float getX() const;
		float getY() const;
		int getPicID() const;
		void setPicID(int);
	private:
		bool lastMouseInPictureBox;
		Shape* shape;
		DWORD  color;
		float x,y;
		int picID;
	};

	class PictureBoxHgeObject: public IGraphicObject {
	public:
		PictureBoxHgeObject(PictureBox*);
		~PictureBoxHgeObject();

		bool initialize(Graphic*);
		void render();

	private:
		hgeSprite*	spr;
		HTEXTURE	tex[15];
		PictureBox*		picObj;
		float x,y;
		int picID;
	};
}

#endif